﻿<#include "../menu.html" />
<!DOCTYPE HTML>
<html>
<body>
	<section class="Hui-article-box">
		<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 生成代码<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
		<div class="Hui-article">
			<article class="cl pd-20">
				<!--<div class="text-c"> 日期范围：-->
					<!--<input type="text" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}'})" id="datemin" class="input-text Wdate" style="width:120px;">-->
					<!-- - -->
					<!--<input type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d'})" id="datemax" class="input-text Wdate" style="width:120px;">-->
					<!--<input type="text" class="input-text" style="width:250px" placeholder="输入会员名称、电话、邮箱" id="" name="">-->
					<!--<button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜用户</button>-->
				<!--</div>-->
				<div class="cl pd-5 bg-1 bk-gray mt-20"> <a href="javascript:;" onclick="layer_show('代码生成器','goProductionCode','900','600')" class="btn btn-primary radius"> 启动生成器</a></span> </div>
				<div class="mt-20">
					<table class="table table-border table-bordered table-hover table-bg table-sort">
						<thead>
						<tr class="text-c">
							<th width="80">类名</th>
							<th width="80">表名</th>
							<th width="80">包名</th>
							<th width="150">创建时间</th>
							<th width="">描述</th>
							<th width="100">操作</th>
						</tr>
						</thead>
						<tbody>
						<#list dataList as item>
							<tr class="text-c">
								<td>${item.objectName}</td>
								<td>${item.tableName}</td>
								<td>${item.packageName}</td>
								<td>${item.createTime?string("yyyy-MM-dd HH:mm:ss")}</td>
								<td>${item.description}</td>
								<td class="td-manage">
									<!--<a title="编辑" href="javascript:;" onclick="member_edit('编辑','member-add.html','4','','510')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a>-->
									<a title="删除" href="javascript:;" onclick="del(${item.id})" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
							</tr>
						</#list>

						</tbody>
					</table>
				</div>
			</article>
		</div>
	</section>

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript">
	function del(id){
		layer.confirm('确认要删除吗？',function(index){
			layer.close(index);
			//此处为遮罩层
			var load_idx = layer.load(1, {shade: [0.1,'#fff']});
			$.post("delete",{id:id},function(result){
				layer.close(load_idx);
				if(result.success){
					layer.msg('已删除!',{icon:1,time:1000},function(){
						location.replace(location.href);
					});
				}else{
					layer.msg(result.msg,{icon:5});
				}
			});
		});
	}
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>